package homework1;

public class Test {

	static void sendMail(Mail mail) {
		mail.send();
	}

	public static void main(String[] args) {
		NormalMail nm = new NormalMail("attachment", "sub", "con", "sender", "time", "status", "rec", "cc");
		Mail gm = new GroupMail("groupMail", "sub", "con", "sender", "sendTime", "status", "group");
		nm.send();
		sendMail(nm);
	}
}
